/**
 * 
 */
/**
 * @author Administrator
 *
 */
package com.stee.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "USER")
public class User extends com.stee.entity.SteeEntityBase implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "SID", length = 16)
	private Integer sid;
	@Column(name = "TITLE", columnDefinition = "varchar(100)  COMMENT '标题'")
	private String title;

	@Column(name = "NAME", length = 60, columnDefinition = "varchar(20) COMMENT '姓名'")
	private String name;

	@Column(name = "AGE", columnDefinition = "int(3) COMMENT '年龄'")
	// @Size(min=1,max=120)
	private int age;

	@Column(name = "USER_CREATED", nullable = false, length = 50)
	private String userCreated;
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DATE_CREATED", nullable = false, length = 7)
	private Date dateCreated;
	@Column(name = "USER_LAST_MODIFIED", length = 50)
	private String userLastModified;
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DATE_LAST_MODIFIED", length = 7)
	private Date dateLastModified;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public Integer getSid() {
		return sid;
	}

	@Override
	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUserCreated() {
		return this.userCreated;
	}

	public void setUserCreated(String userCreated) {
		this.userCreated = userCreated;
	}

	public Date getDateCreated() {
		return this.dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public String getUserLastModified() {
		return this.userLastModified;
	}

	public void setUserLastModified(String userLastModified) {
		this.userLastModified = userLastModified;
	}

	public Date getDateLastModified() {
		return this.dateLastModified;
	}

	public void setDateLastModified(Date dateLastModified) {
		this.dateLastModified = dateLastModified;
	}
}